package com.fand.manager.model.menu;

import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 首页菜单列表
 *
 * @Author: zhangjiabin
 * @Date: 2021/6/16
 * @Version 1.0
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class IndexMenuDTO {

    private HomeInfoBean       homeInfo;
    private LogoInfoBean       logoInfo;
    private List<MenuInfoBean> menuInfo;

    @Data
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
    @Accessors(chain = true)
    public static class HomeInfoBean {
        private String title;
        private String href;
    }

    @Data
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
    @Accessors(chain = true)
    public static class LogoInfoBean {
        private String title;
        private String image;
        private String href;
    }

    @Data
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
    @Accessors(chain = true)
    public static class MenuInfoBean {
        private String          title;
        private String          target;
        private List<ChildBean> child;

        @Data
        @Builder
        @AllArgsConstructor
        @NoArgsConstructor
        @Accessors(chain = true)
        public static class ChildBean {
            private String          title;
            private String          href;
            private String          target;
            private List<ChildBean> child;
        }
    }
}
